package com.xidian.GMS.entity;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class JobFair {
    @Override
	public String toString() {
		return "JobFair [jobfairid=" + jobfairid + ", jobFairName=" + jobFairName + ", starttime=" + starttime
				+ ", organizer=" + organizer + ", jobFairLocation=" + jobFairLocation + ", jobFairPageview="
				+ jobFairPageview + ", jobFairContent=" + jobFairContent + "]";
	}

	private Integer jobfairid;

    private String jobFairName;

    private Date starttime;

    private String organizer;

    private String jobFairLocation;

    private Long jobFairPageview;

    private String jobFairContent;

    public Integer getJobfairid() {
        return jobfairid;
    }

    public void setJobfairid(Integer jobfairid) {
        this.jobfairid = jobfairid;
    }

    public String getJobFairName() {
        return jobFairName;
    }

    public void setJobFairName(String jobFairName) {
        this.jobFairName = jobFairName == null ? null : jobFairName.trim();
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) throws ParseException {
    
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    	Date date = sdf.parse(starttime);
        this.starttime = date;
    }

    public String getOrganizer() {
        return organizer;
    }

    public void setOrganizer(String organizer) {
        this.organizer = organizer == null ? null : organizer.trim();
    }

    public String getJobFairLocation() {
        return jobFairLocation;
    }

    public void setJobFairLocation(String jobFairLocation) {
        this.jobFairLocation = jobFairLocation == null ? null : jobFairLocation.trim();
    }

    public Long getJobFairPageview() {
        return jobFairPageview;
    }

    public void setJobFairPageview(Long jobFairPageview) {
        this.jobFairPageview = jobFairPageview;
    }

    public String getJobFairContent() {
        return jobFairContent;
    }

    public void setJobFairContent(String jobFairContent) {
        this.jobFairContent = jobFairContent == null ? null : jobFairContent.trim();
    }
}